{extend name="layout/layout" /}

{block name="content"}
<style>
    .areaspan{
        margin: 10px 8px auto auto;
        display: inline-block;
        border: #eee solid 1px;
        width: auto;
        padding-left: 8px;
        padding-right: 8px;
        height: 34px;
        line-height: 34px;
        text-align: center;
    }
</style>
<div class="row">
    <div class="col-md-12">
        <div class="portlet light">
            <div class="portlet-title">
                <div class="caption">
                    <i class="icon-share font-dark"></i>
                    <span class="caption-subject font-dark bold uppercase"> 详情</span>
                </div>
                <div class="actions">
                    <a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title=""> </a>
                </div>
            </div>
            <div class="portlet-body">
                <form id="ajax-form" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div class="form-body">
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        所属部门：
                                    </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {$departmentName} </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        姓名：
                                    </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {$data.p_name} </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        照片：
                                    </label>
                                    <div class="col-md-9">
                                        <img src="{$data.p_imgUrl|default='__STATIC__/admin/img/default.png'}" alt="图片上传" style="width: 100px;height: 100px;" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        性别：
                                    </label>
                                    <div class="col-md-9">
                                        {if condition="($data['sex'] == 1)"}
                                            <p class="form-control-static"> 男 </p>
                                        {else/}
                                            <p class="form-control-static"> 女 </p>
                                        {/if}
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        职务：
                                    </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {$data.duties} </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        手机号：
                                    </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {$data.p_phone} </p>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        学历：
                                    </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {$data.education} </p>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        是否为党员：
                                    </label>
                                    <div class="col-md-9 isparty">
                                        {if condition="($data['is_partymember'] == 1)"}
                                            <p class="form-control-static"> 是 </p>
                                        {else/}
                                            <p class="form-control-static"> 否 </p>
                                        {/if}
                                    </div>
                                </div>
                            </div>
                        </div>
                        {if condition="($data['is_partymember'] == 1)"}
                            <div class="party">
                                <div class="row">
                                    <div class="col-md-9">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">
                                                入党时间：
                                            </label>
                                            <div class="col-md-9">
                                                <p class="form-control-static"> {$data.partyTime} </p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        {/if}

                        <div class="row">
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label class="control-label col-md-3">
                                        登录帐号：
                                    </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {$data.username} </p>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <input type="hidden" name="id" value="{$data.id}">
                        <hr />
                        <div class="row">
                            <div class="form-actions">
                                <div class="col-md-offset-2 col-md-10">
                                    <button type="button" class="btn default" onclick="history.go(-1);">
                                        返回 <i class="fa fa-mail-forward"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="pagescript"}

{/block}